package com.zjw.touchscreen.config;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class RetrofitManager {

    private static final Retrofit retrofit;

    static {
        retrofit = new Retrofit.Builder()
                .baseUrl("http://47.119.19.78:8080/")
//                .baseUrl("http://192.168.50.236:8080/")
//                .baseUrl("http://192.168.50.236:8080/")
                .addConverterFactory(GsonConverterFactory.create())
                .build();
    }

    public static <T> T create(final Class<T> service) {
        return retrofit.create(service);
    }

}
